#!/usr/bin/env bash
__Author__="liy"

etcd_cert_path="$1"
kubernetes_cert_path="$2"

which kubectl &>/dev/null
if [ $? -ne 0 ];then
    echo -e "\033[31mkubectl command not found!\033[0m"
    exit 1
fi

bash ./etcd-certs.sh ${etcd_cert_path}
bash ./kubernetes-certs.sh ${kubernetes_cert_path} ${etcd_cert_path}
